{% extends "admin/base.html" %}


{% block content_main %}
<div class="layui-row">
    <div class="layui-col-md8">
        <div class="layui-row">
          <form method="post" action="/question_bank/add_single_choice_question_from_table" enctype="multipart/form-data" class="layui-form">
              <input name="id_question_bank" value="{{ id_question_bank }}" hidden>
              <div class='layui-form-item'>
                <label class='layui-form-label'>单选题表格</label>
                <div class='layui-input-block'>
                  <input type='file' name='file' class='layui-input'>
                </div>
              </div>
              <div class='layui-form-item'>
                <div class='layui-input-block'>
                  <button type='submit' class='layui-btn'>导入单选题</button>
                </div>
              </div>
          </form>
        </div>
        <hr style="background-color: green; height: 10px;"/>
        <div class="layui-row">
          <form method="post" action="/question_bank/add_judgmental_question_from_table" enctype="multipart/form-data" class="layui-form">
              <input name="id_question_bank" value="{{ id_question_bank }}" hidden>
              <div class='layui-form-item'>
                <label class='layui-form-label'>判断题表格</label>
                <div class='layui-input-block'>
                  <input type='file' name='file' class='layui-input'>
                </div>
              </div>
              <div class='layui-form-item'>
                <div class='layui-input-block'>
                  <button type='submit' class='layui-btn'>导入判断题</button>
                </div>
              </div>
          </form>
        </div>
        <hr style="background-color: green; height: 10px;"/>
        <div class="layui-row">
          <form method="post" action="/question_bank/add_short_answer_question_from_table" enctype="multipart/form-data" class="layui-form">
              <input name="id_question_bank" value="{{ id_question_bank }}" hidden>
              <div class='layui-form-item'>
                <label class='layui-form-label'>简答题表格</label>
                <div class='layui-input-block'>
                  <input type='file' name='file' class='layui-input'>
                </div>
              </div>
              <div class='layui-form-item'>
                <div class='layui-input-block'>
                  <button type='submit' class='layui-btn'>导入简答题</button>
                </div>
              </div>
          </form>
        </div>
        <hr/>
    </div>
    <div class="layui-col-md4">
        <blockquote class="layui-elem-quote">题库题数量</blockquote>
        <p>单选题: {{ single_choice|length }}</p>
        <p>判断题: {{ judgmental|length }}</p>
        <p>简单题: {{ short_answer|length }}</p>
        <p>图片题: {{ picture_question|length }}</p>
    </div>
</div>
{% endblock %}
